package com.how2java.test;

import com.how2java.pojo.Car;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Main {
    private static Log log= LogFactory.getLog(Main.class);
    public static void main(String args[]){
        ApplicationContext ctx = new ClassPathXmlApplicationContext("*.xml");
        Car car = ctx.getBean("car",Car.class);
        log.info(car.toString());
        Car car2 = ctx.getBean("car2",Car.class);
        log.info(car2.toString());
    }

}
